<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        .father{
            width: 500px;
            height: 500px;
            background-color: gold;

            position: absolute;
            top:50%;
            left:50%;
            margin-left: -250px;
            margin-top: -250px;
        }
    </style>
</head>
<body>
     <div class="father">
     </div>
</body>
</html>